//
//  MainTableViewCell.m
//  ALFashion
//
//  Created by dengzhicheng on 15/6/16.
//  Copyright (c) 2015年 dengzhicheng. All rights reserved.
//

#import "MainTableViewCell.h"

@implementation MainTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.image = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, [[UIScreen mainScreen] bounds].size.width, 180)];
        [self.contentView addSubview:self.image];
        
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 180, [[UIScreen mainScreen] bounds].size.width - 90 , 40)];
        [self.contentView addSubview:self.titleLabel];
        
        self.dateLabel = [[UILabel alloc] initWithFrame:CGRectMake([[UIScreen mainScreen] bounds].size.width - 90, 180, 90, 40)];
        self.dateLabel.font = [UIFont systemFontOfSize:15];
        self.dateLabel.textColor = [UIColor grayColor];
        [self.contentView addSubview:self.dateLabel];
        
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
